package authority.dao;

import java.util.List;

import authority.entity.Permission;
import authority.util.DbBuilder;
/**
 * 权限dao
 * @author shichenyang
 *
 */
public class PermissionDao {
	
	/**
	 * 获取所有的权限
	 * @return
	 */
	public List<Permission> findAllList(){
		StringBuffer sb=new StringBuffer();
		sb.append("select * from permission");
		return DbBuilder.getListBean(sb.toString(), Permission.class);
	}

}
